package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author ZhangLei
 * @date 2018-05-15
 * @description
 */
@Data
@TableName("user_action_statis")
public class UserActionStatis extends Model<UserActionStatis> {

    private static final long serialVersionUID = 1L;


    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 业务类型
     */
    @TableField(value = "business_type")
    private String businessType;
    /**
     * 业务标识
     */
    @TableField(value = "business_id")
    private Long businessId;
    /**
     * 统计日期
     */
    @TableField(value = "statis_date")
    private Date statisDate;
    /**
     * 选项名
     */
    @TableField(value = "text")
    private String text;
    /**
     * 统计值
     */
    @TableField(value = "log_count")
    private Integer logCount;
    /**
     * 生效时间
     */
    @TableField(value = "effect_time")
    private Date effectTime;
    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
